package com.jsgt.greekfire.dao.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.jsgt.greekfire.dao.model.MarketBean

@Dao
interface MarketBeanDao {
    @Query("select * from market Where symbol IN (:inArray) ORDER BY sort")
    fun getAll(inArray: Array<String?>): LiveData<List<MarketBean>>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addMarketBean(marketBeans: List<MarketBean>)
}